﻿#ifndef SAVEINFO_H
#define SAVEINFO_H
#include<QString>
#include <QList>
#include <QMap>

#if _MSC_VER >= 1600
#pragma execution_character_set("utf-8")
#endif

class SaveInfo
{
public:
    SaveInfo();
    SaveInfo(QString save, QString user,QString hotel,QString hotelName = "",
             QString star = "",QString location = "",QString hotelType = "", QString photo = "");

    const QString &getSave() const;
    const QString &getUser() const;
    const QString &getHotel() const;
    const QString &getHotelName() const;
    const QString &getStar() const;
    const QString &getLocation() const;
    const QString &getHotelType() const;
    const QString &getPhoto() const;

    void setSave(const QString& save);
    void setUser(const QString& user);
    void setHotel(const QString& hotel);
    void setHotelName(const QString& hotelName);
    void setStar(const QString& star);
    void setLocation(const QString& location);
    void setHotelType(const QString& hotelType);
    void setPhoto(const QString& photo);

private:
    QString m_save;
    QString m_user;
    QString m_hotel;
    QString m_hotelName;
    QString m_star;
    QString m_location;
    QString m_hotelType;
    QString m_photo;
};

typedef QList<SaveInfo> SaveInfoList;
typedef QMap<QString, SaveInfoList::iterator> SaveInfoMap;  //网络操作使用

#endif // SAVEINFO_H
